package com.ruoyi.entity.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;
import java.util.Map;

@Data
@NoArgsConstructor  // 添加无参构造
@AllArgsConstructor // 添加全参构造
@JsonIgnoreProperties(ignoreUnknown = true)
public class ChatResponse {

    @JsonProperty("textResponse")
    private String answer;

    @JsonProperty("sources")
    private List<Map<String, String>> references;
}
